package com.djf.djfword.entity;

import java.time.LocalDate;

/**
 * 合同数据实体类
 * 用于封装合同相关的数据信息
 * 
 * @author djf
 */
public class ContractData {
    
    private String employeeName;        // 员工姓名
    private String position;            // 职位
    private String salary;              // 薪资
    private String startDate;           // 开始日期
    private String endDate;             // 结束日期
    private String address;             // 地址
    private String phone;               // 电话
    private String idCard;              // 身份证号
    private String companyName;         // 公司名称
    private String contractNo;          // 合同编号
    private String currentDate;         // 当前日期
    private String legalRepresentative; // 法定代表人
    private String companyAddress;      // 公司地址
    private String workLocation;        // 工作地点
    private String contractPeriod;      // 合同期限
    private String probationPeriod;     // 试用期
    private String workingHours;        // 工作时间
    private String benefits;            // 福利待遇
    private String otherTerms;          // 其他条款
    
    // 构造函数
    public ContractData() {
    }
    
    public ContractData(String employeeName, String position, String salary, String startDate) {
        this.employeeName = employeeName;
        this.position = position;
        this.salary = salary;
        this.startDate = startDate;
        // 设置默认值
        this.companyName = "某某科技有限公司";
        this.legalRepresentative = "张某某";
        this.companyAddress = "北京市朝阳区某某街道123号";
        this.workLocation = "北京市朝阳区某某街道123号";
        this.contractPeriod = "3年";
        this.probationPeriod = "3个月";
        this.workingHours = "每日8小时，每周40小时";
        this.benefits = "五险一金、年终奖、带薪年假";
        this.currentDate = LocalDate.now().toString();
        this.contractNo = "HT" + System.currentTimeMillis();
    }
    
    // Getter和Setter方法
    public String getEmployeeName() {
        return employeeName;
    }
    
    public void setEmployeeName(String employeeName) {
        this.employeeName = employeeName;
    }
    
    public String getPosition() {
        return position;
    }
    
    public void setPosition(String position) {
        this.position = position;
    }
    
    public String getSalary() {
        return salary;
    }
    
    public void setSalary(String salary) {
        this.salary = salary;
    }
    
    public String getStartDate() {
        return startDate;
    }
    
    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }
    
    public String getEndDate() {
        return endDate;
    }
    
    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }
    
    public String getAddress() {
        return address;
    }
    
    public void setAddress(String address) {
        this.address = address;
    }
    
    public String getPhone() {
        return phone;
    }
    
    public void setPhone(String phone) {
        this.phone = phone;
    }
    
    public String getIdCard() {
        return idCard;
    }
    
    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }
    
    public String getCompanyName() {
        return companyName;
    }
    
    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }
    
    public String getContractNo() {
        return contractNo;
    }
    
    public void setContractNo(String contractNo) {
        this.contractNo = contractNo;
    }
    
    public String getCurrentDate() {
        return currentDate;
    }
    
    public void setCurrentDate(String currentDate) {
        this.currentDate = currentDate;
    }
    
    public String getLegalRepresentative() {
        return legalRepresentative;
    }
    
    public void setLegalRepresentative(String legalRepresentative) {
        this.legalRepresentative = legalRepresentative;
    }
    
    public String getCompanyAddress() {
        return companyAddress;
    }
    
    public void setCompanyAddress(String companyAddress) {
        this.companyAddress = companyAddress;
    }
    
    public String getWorkLocation() {
        return workLocation;
    }
    
    public void setWorkLocation(String workLocation) {
        this.workLocation = workLocation;
    }
    
    public String getContractPeriod() {
        return contractPeriod;
    }
    
    public void setContractPeriod(String contractPeriod) {
        this.contractPeriod = contractPeriod;
    }
    
    public String getProbationPeriod() {
        return probationPeriod;
    }
    
    public void setProbationPeriod(String probationPeriod) {
        this.probationPeriod = probationPeriod;
    }
    
    public String getWorkingHours() {
        return workingHours;
    }
    
    public void setWorkingHours(String workingHours) {
        this.workingHours = workingHours;
    }
    
    public String getBenefits() {
        return benefits;
    }
    
    public void setBenefits(String benefits) {
        this.benefits = benefits;
    }
    
    public String getOtherTerms() {
        return otherTerms;
    }
    
    public void setOtherTerms(String otherTerms) {
        this.otherTerms = otherTerms;
    }
    
    @Override
    public String toString() {
        return "ContractData{" +
                "employeeName='" + employeeName + '\'' +
                ", position='" + position + '\'' +
                ", salary='" + salary + '\'' +
                ", startDate='" + startDate + '\'' +
                ", companyName='" + companyName + '\'' +
                ", contractNo='" + contractNo + '\'' +
                '}';
    }
}